package com.cskaoyan.model.vx.vo;

import com.cskaoyan.bean.MarketAddress;
import com.cskaoyan.bean.MarketCart;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @description:
 * @author: 牛犇
 * @date 2021/12/2 16:59
 */

@Data
public class WxCheckoutVo {


    /**
     * 请求参数携带
     */
    private int grouponRulesId;
    private int cartId;
    private int userCouponId;
    private int couponId;
    private int addressId;

    /**
     * 可用的优惠劵数量
     */
    private int availableCouponLength;

    /**
     *market_order表
     */
    private BigDecimal actualPrice;
    private BigDecimal orderTotalPrice;
    private BigDecimal goodsTotalPrice;
    private BigDecimal couponPrice;
    private BigDecimal freightPrice;
    private BigDecimal grouponPrice;
    /**
     * 表market_address
     */
    private MarketAddress checkedAddress;
    /**
     * 表market_cart
     */
    private List<MarketCart> checkedGoodsList;

    public WxCheckoutVo() {
    }

    public WxCheckoutVo(int grouponRulesId, int cartId, int userCouponId, int couponId, int addressId, int availableCouponLength, BigDecimal actualPrice, BigDecimal orderTotalPrice, BigDecimal goodsTotalPrice, BigDecimal couponPrice, BigDecimal freightPrice, BigDecimal grouponPrice, MarketAddress checkedAddress, List<MarketCart> checkedGoodsList) {
        this.grouponRulesId = grouponRulesId;
        this.cartId = cartId;
        this.userCouponId = userCouponId;
        this.couponId = couponId;
        this.addressId = addressId;
        this.availableCouponLength = availableCouponLength;
        this.actualPrice = actualPrice;
        this.orderTotalPrice = orderTotalPrice;
        this.goodsTotalPrice = goodsTotalPrice;
        this.couponPrice = couponPrice;
        this.freightPrice = freightPrice;
        this.grouponPrice = grouponPrice;
        this.checkedAddress = checkedAddress;
        this.checkedGoodsList = checkedGoodsList;
    }
}
